package model.towers;

import java.util.concurrent.CopyOnWriteArrayList;

import model.enemies.IEnemy;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

import com.example.towerdefence.R;

import controller.GameBoard;


public class FrostTower extends TowerSprite {

	private static final Bitmap FROST_TOWER = BitmapFactory.decodeResource(
			GameBoard.getRes(), R.drawable.tower3spritesheet);

	private int slow;
	
	public FrostTower(float x,float y, int price,
			float range, int shootingSpeed,
			CopyOnWriteArrayList<IEnemy> enemy, int slow) {
		setBitmapImage(FROST_TOWER);
		setShootingSpeed(shootingSpeed);
		setPrice(price);
		setRange(range);
		setxAxisPoint(x);
		setyAxisPoint(y);
		setEnemy(enemy);
		setSlow(slow);

		this.setStartShootingThread(new StartShootingThread(this,
				getEnemy()));
		new Thread(this.getStartShootingThread()).start();

	}

	public int getSlow() {
		return slow;
	}

	public void setSlow(int slow) {
		this.slow = slow;
	}
}
